<template>
  <div class="news-main">
    <div class="news-main-text" v-for="(item, index) in datalist" :key="index">
      {{ item.text }}
    </div>
  </div>
</template>

<script >
import { defineComponent } from "vue";

export default defineComponent({
  components: {},
  props: {
    datalist: {
      type: Array,
      default: () => [],
    },
  },
  setup(props) {
    console.log(props.datalist);
    return {};
  },
});
</script>

<style scoped lang="less" >
.news-main {
  height: 300px;
  overflow: auto;
  .news-main-text {
    width: 100%;
    padding: 15px 0 15px 0;
    height: 78;
    border-bottom: 1px solid #f6f6f6;
  }
}
</style>
